<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){


    	$news = D("News")->select();
    	$products = D("Products")->select();
    	$this->assign('nav', $nav);
    	$this->assign('news', $news);
    	$this->assign('products', $products);
        $this->display();

    }

}